package com.wali.modules.common.service;

import com.wali.modules.common.bo.ComAreaBO;
import com.wali.modules.common.dao.IComAreaDao;
import com.wali.modules.common.vo.ComAreaVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author walixu
 * @ClassName com.wali.modules.common.service
 * @Description 区域service类
 * @email wali.xu@kpmg.com
 * @date 24/01/2019 8:16 下午
 */
@Service
public class ComAreaService {

    @Autowired
    private IComAreaDao iComAreaDao;

    /**
     * @param
     * @return
     * @throws
     * @Title
     * @Description 查询符合条件的区域信息
     */
    public List<ComAreaVO> listComArea(ComAreaBO comArea) {
        ComAreaVO comAreaVO = ComAreaBO.convert(comArea);
        List<ComAreaVO> comAreaList = iComAreaDao.listComArea(comAreaVO);
        return comAreaList;
    }

}
